<include file="Public:header" />

<form class="form-horizontal" action="__URL__/edit?book_id={$book_id}&article_id={$article_id}" method="post">
  <div class="form-group">
    <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="title" id="title" value="{$article.title}" placeholder="请输入类型名称..">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">关键字</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="keywords" id="keywords" value="{$article.keywords}" placeholder="请输入关键字..">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">描述</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="description" id="description" value="{$article.description}" placeholder="请输入描述..">
    </div>
  </div>
    <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">排序</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" name="order" id="order" value="{$article.order}" placeholder="请输入排序..">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">状态</label>
    <div class="col-sm-10">
      <input name="status" type="radio" value="1" <if condition="$article.status eq '1'">checked</if>>可视
      <input name="status" type="radio" value="0" <if condition="$article.status neq '1'">checked</if>>不可视
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">文章内容</label>
    <div class="col-sm-10">
      	<textarea class="form-control" rows="3" name="content" placeholder="请输入文章内容..">{$article.content}</textarea>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-default" name="submit" value="提交">提交</button>
    </div>
  </div>
</form>

<include file="Public:footer" />
